翻訳と辞書
Words near each other
・ Partial Password
・ Partial payment
・ Partial permutation
・ Partial Portraits
・ Partial pressure
・ Partial productivity
・ Partial redundancy elimination
・ Partial regression plot
・ Partial residual plot
・ Partial response maximum likelihood
・ Partial return reverse swap
・ Partial seizure
・ Partial sorting
・ Partial specific volume
・ Partial stroke testing
Partial template specialization
・ Partial Terms of Endearment
・ Partial thromboplastin time
・ Partial trace
・ Partial unilateral lentiginosis
・ Partial veil
・ Partial verdict
・ Partial volume
・ Partial volume (imaging)
・ Partial wave analysis
・ Partial word
・ Partial zero-emissions vehicle
・ Partial-Birth Abortion Ban Act
・ Partial-Birth Abortion Ban Act of 1995
・ Partial-matching Meet-in-the-Middle attack


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Partial template specialization : ウィキペディア英語版
Partial template specialization

Partial template specialization is a particular form of class template specialization. Usually used in reference to the C++ programming language, it allows the programmer to specialize only some arguments of a class template, as opposed to explicit specialization, where all the template arguments are provided.

==Templates and specialization==

Class templates are really meta-classes: they are partial abstract data types that provide instructions to the compiler on how to create classes with the proper data members. For example, the C++ standard containers are class templates. When a programmer uses a vector, one instantiates it with a specific data type, for example, int, string or double. Each type of vector results in a different class in the compiler's object code, each one working with a different data type.
If one knows that a class template will be used with a specific data type fairly often and this data type allows some optimizations (e.g. bit shifting with integers, as opposed to multiplying or dividing by 2), one may specialize the template by specifying another class template that is identical but by specifying the parameter types. When the compiler sees such a class template instantiated in code, it will generally choose the most specialized template definition that matches the instantiation. Therefore, an explicit specialization (one where all the template arguments are specified) will be preferred to a partial specialization if all the template arguments match.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Partial template specialization」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.